let BASE_URL = "";
let APPID = "";
const TIME_OUT = 30000;

if (process.env.NODE_ENV === "development") {
  BASE_URL = "/api";
  APPID = "IjCGNelmb1";
} else if (process.env.NODE_ENV === "production") {
  let origin = window.location.origin;
  BASE_URL = `${origin}/test/xgk/service/hsteach`; 
  APPID = "IjCGNelmb1"; // 测试
  // BASE_URL = `${origin}/xgk/service/hsteach`; 
  // APPID = "QP2w2IGV0s"; // 生产
} else {
  BASE_URL = "";
}
export { BASE_URL, APPID, TIME_OUT };
